import { createSlice, createAsyncThunk } from "@reduxjs/toolkit";

// 出入库管理

const initialState = {
  inventoryList: [],
}
const inventorySlice = createSlice({
  name: "InventorySlice",
  initialState,
  reducers: {
    todoAdded(state, action) {

    },
    todoToggled(state, action) {

    },
  },
});

export const actionsFn = inventorySlice.actions;
export default inventorySlice.reducer;

export const async_GetInventoryList = createAsyncThunk('getInventoryList', async (obj, store) => {
  // 第一个参数是 传入的参数  第二个是store实例
  return 0
})